package com.runrunfast.fxj.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * http请求返回的最外层对象
 *
 * @author: 陈胤训
 * @create: 2018-08-08 14:22
 **/

@Data
@ApiModel(description= "返回响应数据")
public class ResultVo<T> implements Serializable {

    private static final long serialVersionUID = 8351382088364309089L;
    /**
     * 错误码
     */
    @ApiModelProperty(value = "是否成功")
    private Integer code;

    /**
     * 提示信息
     */
    @ApiModelProperty(value = "错误编号")
    private String msg;

    /**
     * 具体内容
     */
    @ApiModelProperty(value = "返回内容",dataType = "List")
    private T data;
}
